package com.bwie.controller;

import com.bwie.service.impl.TbOrderServiceImpl;
import com.bwie.utils.R;
import feign.RequestTemplate;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: zhaijiaqi
 * @Date: 2025/4/21 16:33
 * @Description:
 **/
@RestController
@RequestMapping("/order/index")
@Api(tags = "订单管理")
public class IndexController {

    @Autowired
    TbOrderServiceImpl tbOrderService;




    /**
     * 订单Id
     * @param orderId
     * @return
     */
    @PostMapping("/getOrderByid/{orderId}")
    public R getOrderByid(@PathVariable("orderId") Integer orderId){
        return tbOrderService.getOrderByid(orderId);
    }
}
